package com.yehui.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.stereotype.Controller;

/**
 * 只扫描Controller
 *
 */
@Configuration
@ComponentScan(value = "com.yehui",includeFilters = {
		@ComponentScan.Filter(type = FilterType.ANNOTATION,value = Controller.class)
},useDefaultFilters = false)
public class SpringMvcConfig {
	//springmvc的子容器，能扫描到Spring容器组件
}
